<?php 
$list = $this->sanpham->get_all('product',22, 0); //trit($list) ;
if($list){?>

<div class="promain">
    <div class="promain-title">
        <?=lang('san_pham')?>
    </div>
    <div class="line-pro"></div>
    <div class="promain-row">
        <ul>
        <?
        foreach($list as $row)
        {
            $links = site.'sanpham/detail/'.$row->pro_id.'/'.kodau($row->name).'.html' ;
    	?>
            <li><a href="<?=$links?>"><img width="4" height="4" src="<?=url?>templates/images/index-pro.gif"><?=$row->name?></a></li>
            
        <?
			} 
		?>
        </ul>
    </div>
</div>
<?php } ?>